# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit git-r3 savedconfig toolchain-funcs

DESCRIPTION="scrollbackbuffer program for st"
HOMEPAGE="https://tools.suckless.org/scroll"
EGIT_REPO_URI="https://gitee.com/wonux/scroll"

LICENSE="ISC"
SLOT="0"
KEYWORDS="amd64 arm64 ~hppa ppc64 x86"

RDEPEND="
"
DEPEND="
	${RDEPEND}
	virtual/pkgconfig
	x11-base/xorg-proto
"

src_prepare() {
	default
	restore_config config.h
}

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install

	save_config config.h
}

